package com.tom.demo.mapper;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.tom.demo.common.entity.SysUser;
import com.tom.demo.dto.UserDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user(用户信息表)】的数据库操作Mapper
* @createDate 2024-11-18 21:51:01
* @Entity generator.domain.SysUser
*/
@Mapper
@DS("master")
public interface SysUserMapper {

    int deleteByPrimaryKey(String id);

    int insert(SysUser record);

    SysUser selectByPrimaryKey(String id);

    int updateByPrimaryKey(SysUser record);

    SysUser findByUserName(@Param("username") String username);

    List<SysUser> pageList(UserDto userDto);

    int findOne(@Param("username")String username,
                @Param("email")String email,
                @Param("phoneNumber")String phoneNumber,
                @Param("userId")String userId);

    List<SysUser> selectAll();

}
